fix(wf@67069bf): ootb module/mod HELP 断言失败 + printVersion / 误提交 tgz - #32
Merged
Tanya7z merged 1 commit intoJul 22, 2026
Merged
Conversation
ootb 因 HELP 改为 `module/mod list` 后仍用 `/module\s+(list|install)/` 失败。 同步收紧 DRY/OCP:MODULE_CMD_NAMES 驱动 HELP/分发;修复 --version 空输出; 删除仓根误提交的 npm pack 产物并 ignore *.tgz。 Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
Tanya7z
marked this pull request as ready for review
July 22, 2026 17:01
Contributor
Author
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main@8fc0989/67069bf的 ootb 工作流失败(runs 29940097714、29940147800):sfmc --help将别名写成module/mod list后,tools/check-ootb.mjs仍用/module\s+(list|install)/,断言失败(10 PASS / 1 FAIL)。本 PR 直接修 CI,并顺带修同批 push 中可验证的 SOLID / 卫生问题。
审查(DRY · OCP · DIP · LSP · Demeter)
module/mod后断言漂移module(/…)? list|install,并让 HELP 标签来自MODULE_CMD_NAMESsfmc --version模板字符串未console.log,无输出printVersion67069bf误提交仓根sfmc-bds-sfmc-0.1.0.tgzgit rm+.gitignore*.tgzmain/repl硬编码case "module": case "mod",与MODULE_CMD_NAMES双源isModuleCommand();新增别名只改一处spawnService/spawnServiceSync重复拼子进程 envserviceChildEnv未在本 PR 展开(仍见 #31 / 设计债):
enabledSet热更新db.tx两阶段读回协议验证
Test plan
ootb在本分支绿sfmc module list/sfmc mod list行为不变*.tgz